<?
echo time();
$time_start = microtime(true);

// Sleep for a while
usleep(500000);

$time_end = microtime(true);
$time = $time_end - $time_start;
echo "<BR>$time<BR>";
function microtime_float()
{
	    list($usec, $sec) = explode(" ", microtime());
		    return ((float)$usec + (float)$sec);
}

$time_start = microtime_float();

// Sleep for a while
usleep(100);

$time_end = microtime_float();
$time = $time_end - $time_start;

echo "Did nothing in $time seconds\n";
?>
